﻿@inherits AdminCompontentBase
<div @ref="Ref">
    <PModal @bind-Value="_visible"
            Persistent
            Title="@T("AddExternalMember")"
            HideCancelAction
            Width="398"
            HideTitleDivider
            HideActionsDivider
            HeaderClass="h6 emphasis2--text pa-6 pb-0"
            ActionsClass="pa-6 pt-0"
            OnSave="HandleOk"
            OnCancel="HandleCancel">
        <ChildContent>
            <MForm Model="_model" EnableValidation EnableI18n Class="full-height" @ref="_form">
                <STextField Label="@T("User.DisplayName")" @bind-Value="_model.DisplayName"></STextField>
                <STextField Class="mt-6" Label="@T("PhoneNumber")" @bind-Value="_model.PhoneNumber"></STextField>
                <STextField Class="mt-6" Label="@T("Email")" @bind-Value="_model.Email"></STextField>
            </MForm>
        </ChildContent>
        <SaveContent Context="save" >
            <SButton OnClick="save.Click" BorderRadiusClass="btn-form-full">@(T("Submit"))</SButton>
        </SaveContent>
    </PModal>
</div>
